package cn.dkdoo.bean.entity;

import cn.dkdoo.utils.entity.BaseRequest;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.UUID;

/**
 * @author nicky
 * @date 2021/5/12 下午2:31
 */
@Data
@Document(collection = "testDdkTransaction")
public class TestTraUser extends BaseRequest implements Serializable,TestTraUserBase {
    @Id
    private String id;
    private String name;
    private Integer age;
    private String password;
    private Integer intDefault;

    public static TestTraUser getOne(){
        TestTraUser testTraUser = new TestTraUser();
        testTraUser.setId(null);
        testTraUser.setName(UUID.randomUUID().toString());
        testTraUser.setAge(Math.round(18));
        testTraUser.setPassword(UUID.randomUUID().toString());
        return testTraUser;
    }
}
